package com.keke.myblogv1.article.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.keke.myblogv1.article.dto.QueryArticleByPageDTO;
import com.keke.myblogv1.article.entity.MyBlogArticle;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * @author Derrick
 * @since 2022-07-31
 */
public interface MyBlogArticleService extends IService<MyBlogArticle> {

    Page<MyBlogArticle> getAllArticleByPage(QueryArticleByPageDTO queryArticleByPageDTO);

    MyBlogArticle getAllArticleById(int id);

    boolean insertArticle(MyBlogArticle myBlogArticle);

    boolean updateArticle(MyBlogArticle myBlogArticle);

    boolean deleteArticle(MyBlogArticle myBlogArticle);
}
